﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/TwoCols.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<TinyPMS_Jerusalem.ViewModels.GetPendingPropertyBorrowApply>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	审核物品借出申请
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="WidgetTitleContent" runat="server">
	待审核的借出申请
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


    <table cellpadding="0" cellspacing="0" class="datatable">
    <thead>
        <tr>
            <th>
                审核操作
            </th>
            <th>
                物品编号
            </th>
            <th>
                物品名称
            </th>
            <th>
                借出者用户名
            </th>
            <th>
                借出者姓名
            </th>
            <th>
                借出者联系电话
            </th>
            <th>
                借出者联系地址
            </th>
            <th>
                申请时间
            </th>
        </tr>
    </thead>
    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%= Html.ActionLink("审核通过", "ApproveApply", new {  id=item.BorrowLogID.ToString() }) %> |
                <%= Html.ActionLink("拒绝申请", "DenyApply", new {  id=item.BorrowLogID.ToString()  })%>
            </td>
            <td>
                <%= Html.Encode(item.ID) %>
            </td>
            <td>
                <%= Html.Encode(item.Name) %>
            </td>
            <td>
                <%= Html.Encode(item.BorrowerName) %>
            </td>
            <td>
                <%= Html.Encode(item.BorrowerInfo.Name) %>
            </td>
            <td>
                <%= Html.Encode(item.BorrowerInfo.Phone) %>
            </td>
            <td>
                <%= Html.Encode(item.BorrowerInfo.Address) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.ApplyTime)) %>
            </td>
        </tr>
    
    <% } %>

    </table>

</asp:Content>

